package com.sunshineedu.sunshineeducationspring.service;

import com.sunshineedu.sunshineeducationspring.dao.CourseDao;
import com.sunshineedu.sunshineeducationspring.entity.Course;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class CourseService {
    @Resource
    CourseDao courseDao;
    public Course findNameById(Integer id){
        return courseDao.getCourseById(id);
    }
}
